perm filename PUREP.5[MAC,LSP] blob sn#555011 filedate 1981-01-02 generic text, type C, neo UTF8
COMMENT ⊗   VALID 00002 PAGES
C REC  PAGE   DESCRIPTION
C00001 00001
C00002 00002	-*-MIDAS-*-
C00003 ENDMK
C⊗;
;-*-MIDAS-*-
TITLE PUREP/WRITEABLEP
.insrt sys:.fasl defs
.fasl

; This is a file with two primitives, WRITEABLEP and PUREP
; Note labels 'purep' and 'writeablep' exist only for the sake of TAGS

.entry PUREP SUBR 002
purep:	hrrz tt,a		   ;find the entry in the segment table
	lsh tt,-seglog
	move tt,st(tt)		   ;(we want the left half too)
	tlnn tt,st.pur
	  jrst false
true:	movei a,.atom T
	popj p,

.entry WRITEABLEP SUBR 002
writeablep:	hrrz tt,a
	lsh tt,-12
	.call [setz ? sixbit /CORTYP/ ? tt ? %clout,,tt ((SETZ)) ]
	  caia
	jumpl tt,true
false:	setz a,
	popj p,

FASENDβ